/**
 * Copyright (c) Enalean, 2018. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

.pull-request-commits-loading {
    flex: 1 1 auto;
    align-self: stretch;
    min-height: 30px;
    background: url('/themes/BurningParrot/images/spinner.gif') no-repeat center center;
}

.pull-request-commits-list-commit {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: space-between;
}

.pull-request-commits-list-commit-spacer {
    flex: 1 1 auto;
    min-width: $tlp-spacing;
}

.pull-request-commits-list-commit-last-status {
    margin: 0 $tlp-spacing 0 0;
}

.pull-request-commits-list-commit-last-status-icon {
    margin: 0 0 0 3px;
}

.pull-request-commits-list-commit-metadata {
    display: flex;
    align-items: center;
}

.pull-request-commits-list-commit-metadata-avatar {
    margin: 0 $tlp-half-spacing 0 0;
}

.pull-request-commits-list-commit-metadata-authored {
    margin: $tlp-half-spacing 0 0;
    font-size: 14px;
    line-height: 20px;
}

.pull-request-commits-list-commit-metadata-authored-name {
    margin: 0 $tlp-half-spacing 0 0;
}

.pull-request-commits-list-commit-metadata-authored-name-link {
    color: $tlp-theme-color;
    cursor: pointer;

    &:hover {
        text-decoration: underline;
    }
}

.pull-request-commits-list-commit-metadata-authored-date {
    color: $tlp-ui-dimmed;
}

.pull-request-commits-list-commit-metadata-authored-icon {
    margin: 0 3px 0 0;
}

.pull-request-commits-list-commit-badge {
    width: 80px;
    text-align: center;
}
